<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#updateHelpBtn").click(function(){
			if($("#title").val()==""){
				alert("제목을 입력하세요!");
			}
			if($("#writer").val()==""){
				alert("작성자를 입력하세요!");
			}
			if($("#content").val()==""){
				alert("글 내용을 입력하세요!");
			}
			$("#updateHelpForm").submit();
		});
	});//ready
</script>
</head>
<body>
<center>
<h1>공지사항 수정하기</h1>
<form action="updateHelpForAdmin.do" id="updateHelpForm">
<input type="hidden" value="${requestScope.hvo.no }" id="no" name="no">
<table>
<tr>
	<td>제목:</td><td><input type="text" value="${requestScope.hvo.title }" id="title" name="title"></td>
</tr>
<tr>
	<td>작성자:</td><td><input type="text" value="${requestScope.hvo.id }" id="id" name="id"></td>
</tr>
<tr>
	<td colspan="2"><textarea rows="20" cols="70" id="content" name="content">${requestScope.hvo.content }</textarea></td>
</tr>
<tr>
	<td colspan="2"><input type="button"  value="수정하기" id="updateHelpBtn"></td>
</tr>
</table>
</form>
</center>
</body>
</html>